From: Arayuki Mago Date: Mon, 1 Sep 2025 15:51:33 +0000 (+0900) Subject: luci-proto-ipv6: map: allow /128 IPv6 prefix length X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=183ab68aef71beedac346d664876c188e9c9fdcc;p=project%2Fluci.git luci-proto-ipv6: map: allow /128 IPv6 prefix length IPv6 prefix length is normally valid in the range 0–64. Additionally, /128 is a special case that needs to be supported. Signed-off-by: Arayuki Mago --- diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js index 471608b5ae..62bc3648a9 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js @@ -62,7 +62,7 @@ return network.registerProtocol('map', { o = s.taboption('general', form.Value, 'ip6prefixlen', _('IPv6 prefix length'), _('The length of the IPv6 prefix in bits')); o.placeholder = '16'; - o.datatype = 'range(0,64)'; + o.datatype = 'or(range(0,64),128)'; o = s.taboption('general', form.Value, 'ealen', _('EA-bits length')); o.datatype = 'range(0,48)';